package cnt5106.p2p.peer.network;

import java.util.Random;

public class LittleRandomGen {
	int num = -1;
	int i = 0, j = 0;
	int[] array = new int[3];
	Random rNum = new Random();
	
	public int[] generate (int count){
		while (i!=3){
			num = rNum.nextInt(count);
			for (j=0; j<i; j++){
				if (array[j] == num)
					break;
			}
			if (i==j)
				array[i++] = num;
		}
		return array;
			
	}
}


	

	
